<?php
	class phongbanbs
	{
		public $MaPhongBan = 0;
		public $TenPhongBan = "";
		public $MoTa = "";
		public $DienThoai = "";
		
		public function Add()
		{
			$db = new phongbandb();
			return $db->Add($this->TenPhongBan, $this->MoTa, $this->DienThoai);
		}
		
		public function Delete()
		{
			$db = new phongbandb();
			return $db->Delete($this->MaPhongBan);
		}
		
		public function Update()
		{
			$db = new phongbandb();
			return $db->Update($this->MaPhongBan, $this->TenPhongBan, $this->MoTa, $this->DienThoai);
		}
	
		public function GetList()
		{
			$db = new phongbandb();
			return $db->GetList($this->MaPhongBan, $this->TenPhongBan, $this->MoTa, $this->DienThoai);
		}
		
	}
?>